﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SISCON.Model
{
    public class User
    {
        private long _UserId;
        private bool _IsStatic;
        private string _LoginName;
        private string _DisplayName;
        private string _Password;
        private long _RoleId;
        private string _Email;
        private List<RoleDet> _Permissions;
        private bool _IsActive;
        private long _CreatedBy;
        private DateTime _CreationDate;
        private long _LastUpdatedBy;
        private DateTime _LastUpdateDate;

        public long UserId
        {
            get { return _UserId; }
            set { _UserId = value; }
        }

        public bool IsStatic
        {
            get { return _IsStatic; }
            set { _IsStatic = value; }
        }

        public string LoginName
        {
            get { return _LoginName; }
            set { _LoginName = value; }
        }

        public string DisplayName
        {
            get { return _DisplayName; }
            set { _DisplayName = value; }
        }

        public string Password
        {
            get { return _Password; }
            set { _Password = value; }
        }

        public long RoleId
        {
            get { return _RoleId; }
            set { _RoleId = value; }
        }

        public string Email
        {
            get { return _Email; }
            set { _Email = value; }
        }

        public List<RoleDet> Permissions
        {
            get { return _Permissions; }
            set { _Permissions = value; }
        }

        public bool IsActive
        {
            get { return _IsActive; }
            set { _IsActive = value; }
        }

        public long CreatedBy
        {
            get { return _CreatedBy; }
            set { _CreatedBy = value; }
        }

        public DateTime CreationDate
        {
            get { return _CreationDate; }
            set { _CreationDate = value; }
        }
        public string CreationDateStr
        {
            get { return _CreationDate.ToString("dd/MM/yyyy HH:mm"); }
            set { }
        }

        public long LastUpdatedBy
        {
            get { return _LastUpdatedBy; }
            set { _LastUpdatedBy = value; }
        }

        public DateTime LastUpdateDate
        {
            get { return _LastUpdateDate; }
            set { _LastUpdateDate = value; }
        }
        public string LastUpdateDateStr
        {
            get { return _LastUpdateDate.ToString("dd/MM/yyyy HH:mm"); }
            set { }
        }
    }
}